﻿/// <reference name="MicrosoftAjax.js"/>

Type.registerNamespace("YUIAspNet");

YUIAspNet.ColumnChart = function(element) {
    YUIAspNet.ColumnChart.initializeBase(this, [element]);
}

YUIAspNet.ColumnChart.prototype = {
    initialize: function() {
        YUIAspNet.ColumnChart.callBaseMethod(this, 'initialize');
    },

    initializeChartControl: function(sender, args) {

        if(this.get_YAxis().EnableStacking)
            this._yuiControl = new YAHOO.widget.StackedColumnChart(
                this.get_ChartContainer(),
                this.get_DataSource(), 
                this._BuildConfig());
        else
            this._yuiControl = new YAHOO.widget.ColumnChart(
                this.get_ChartContainer(),
                this.get_DataSource(), 
                this._BuildConfig());
    }
}

YUIAspNet.ColumnChart.registerClass('YUIAspNet.ColumnChart', YUIAspNet.BaseChart);
